import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/components/Login/Login'
import register from '@/components/Login/register'
import Home from '@/components/Home'
import Push from '@/components/navmen/Push/Push'
import Doctors from '@/components/navmen/Doctors/Doctors'
import Users from '@/components/navmen/Doctors/Users'
import Commodity from '@/components/navmen/Doctors/Commodity'
import DynamicReply from '@/components/navmen/Doctors/DynamicReply'

import Report from '@/components/navmen/Report/Report'

import Information from '@/components/navmen/Doctors/Information'
import Activitylist from '@/components/navmen/Activity/Activitylist'
import ActivitySeach from '@/components/navmen/Activity/ActivitySeach'
import Setting from '@/components/navmen/Setting/Setting'  //修改密码
import editTel from '@/components/navmen/Setting/editTel'  //修改手机
import Problem from '@/components/navmen/Setting/Problem'

import Resere from '@/components/Login/Resere'
import RunningWater from '@/components/navmen/Money/RunningWater'
import BuyList from '@/components/navmen/Money/BuyList'



Vue.use(Router)

export default new Router({
  routes: [
    {
      path:'/',
      name:'Login',
      component:Login
    },
 
    {
      path:'/register',
      name:'register',
      component:register
    },
    {
      path: '/Home',
      name: 'Home',
      component: Home,
      children:[
      {
        path:'Push',
        component:Push,
      },
      {
        path:'Report',
        component:Report,
      },
      {
        path:'Activitylist',
        component:Activitylist,
      },
      {
        path:'ActivitySeach',
        component:ActivitySeach,
      },
      {
        path:'Doctors',
        component:Doctors,
      },
     
      {
        path:'Information',
        component:Information,
      },
      {
        path:'RunningWater',
        component:RunningWater,
      },
      {
        path:'Setting',
        component:Setting,
      },
      {
        path:'editTel',
        component:editTel,
      },
      {
        path:'Problem',
        component:Problem,
      },
      {
        path:'BuyList',
        component:BuyList,
      },
      {
        path:'Users',
        component:Users,
      }, 
      {
        path:'Commodity',
        component:Commodity,
      }, 
      {
        path:'DynamicReply',
        component:DynamicReply,
      }, 
      {
        path:'Resere',
        component:Resere,
      }
    ]}
  ]
})
